package com.yc.sole.erp.biz;

import com.yc.sole.erp.mapper.StatisticsMapper;
import com.yc.sole.erp.request.StatisticsReq;
import com.yc.sole.erp.response.StatisticsSaleOrderResp;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yizuomin
 * @date 2024/1/18 17:14
 **/
@Service
@RequiredArgsConstructor
public class StatisticsBiz {

    private final StatisticsMapper statisticsMapper;

    /**
     * 销售订单数量统计
     *
     * @param req
     * @return
     */
    public List<StatisticsSaleOrderResp> statisticsSaleOrderQuantity(StatisticsReq req) {
        return statisticsMapper.statisticsSaleOrderQuantity(req);
    }

    /**
     * 班次产量统计
     *
     * @param req
     * @return
     */
    public List<StatisticsSaleOrderResp> statisticsShiftOutput(StatisticsReq req) {
        return statisticsMapper.statisticsShiftOutput(req);
    }

    /**
     * 客户订单金额统计
     *
     * @param req
     * @return
     */
    public List<StatisticsSaleOrderResp> statisticsCustomerOrderAmount(StatisticsReq req) {
        return statisticsMapper.statisticsCustomerOrderAmount(req);
    }

    /**
     * 客户订单数量统计
     *
     * @param req
     * @return
     */
    public List<StatisticsSaleOrderResp> statisticsCustomerOrderQuantity(StatisticsReq req) {
        return statisticsMapper.statisticsCustomerOrderQuantity(req);
    }

    /**
     * 热销产品统计
     *
     * @param req
     * @return
     */
    public List<StatisticsSaleOrderResp> statisticsProductQuantity(StatisticsReq req) {
        return statisticsMapper.statisticsProductQuantity(req);
    }

    /**
     * 客户收款统计
     *
     * @param req
     * @return
     */
    public List<StatisticsSaleOrderResp> statisticsCustomerPayment(StatisticsReq req) {
        return statisticsMapper.statisticsCustomerPayment(req);
    }

}
